<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Body_Health_Sensor: BodyHealthSensor.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Body_Health_Sensor
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">BodyHealthSensor.h</div></div>
</div><!--header-->
<div class="contents">
<a href="BodyHealthSensor_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#ifndef _BODY_HEALTH_SENSOR_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#define _BODY_HEALTH_SENSOR_H_</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;Arduino.h&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">   15</a></span><span class="preprocessor">#define uint8_t unsigned char</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="BodyHealthSensor_8h.html#a301c610e29af66c2e97347497d728d46">   29</a></span><span class="preprocessor">#define _BODY_HEALTH_SERIAL Serial1</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="BodyHealthSensor_8h.html#ae35eda22b5a842d1a1e44966a645ce6c">   32</a></span><span class="preprocessor">#define SEND_START_SEQ()    \</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">    ;                       \</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">    {                       \</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor">        _BODY_HEALTH_SERIAL.write(0xA5); \</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">        _BODY_HEALTH_SERIAL.write(0xA1); \</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">    } </span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="BodyHealthSensor_8h.html#af001f6225fcaa6c2c2dc8b08f52a57cb">   39</a></span><span class="preprocessor">#define SEND_END_SEQ()      \</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">    ;                       \</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">    {                       \</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">        _BODY_HEALTH_SERIAL.write(0xA5); \</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">        _BODY_HEALTH_SERIAL.write(0xA2); \</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">    }</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html">   49</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>{</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a2b955614a1389cfe49440d9c1054ecb0">   51</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> head[2];            </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a62eb91c6d8c95406d41074a335109e27">   52</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a62eb91c6d8c95406d41074a335109e27">heartRate</a>;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#abb3e579c1bdace0081d019e4bca699be">   53</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#abb3e579c1bdace0081d019e4bca699be">bloodOxygen</a>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#aede40a8f777c6b3df2bca269a27b78dc">   54</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#aede40a8f777c6b3df2bca269a27b78dc">microcirculation</a>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#ad837fd62911842ebc34a115686f7f134">   55</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> bloodPressure[2];   </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a44e2133ad73131f98a91999070cb1621">   56</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a44e2133ad73131f98a91999070cb1621">R2RInterval</a>;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a65ee96c67f599d4da08f8aa0dd5dc89b">   57</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a65ee96c67f599d4da08f8aa0dd5dc89b">HRV_SDNN</a>;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a2c24d40ada25d6aeb4f03504bb312dcd">   58</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a2c24d40ada25d6aeb4f03504bb312dcd">HRV_RMSSD</a>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#aef980c827feed489c2e56c03ce8363c7">   59</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#aef980c827feed489c2e56c03ce8363c7">fatigue</a>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a0c729c783fbb4ec06c4fa3a71f4ab734">   60</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> ambientTemp[2];     </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a519d71b8ad265b5bae30d2851d49ec33">   61</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> bodyTemp[2];        </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a1e3a9809200e8d2360f63be7005daf3a">   62</a></span>    <a class="code hl_define" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a1e3a9809200e8d2360f63be7005daf3a">tail</a>;               </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>} <a class="code hl_struct" href="structBodyHeathSensor.html">BodyHeathSensor</a>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="keywordtype">bool</span> <a class="code hl_function" href="BodyHealthSensor_8h.html#a96f2f6dbd3b5d7f3436ff15ded38ac24">isAvailable</a>(<a class="code hl_struct" href="structBodyHeathSensor.html">BodyHeathSensor</a> bhs);</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span><span class="keywordtype">void</span> <a class="code hl_function" href="BodyHealthSensor_8h.html#a5cc5bbee1a27b484287fcaac801e65f3">myBodyHealthSensorSetup</a>();</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="BodyHealthSensor_8h.html#a028af8c275b3a04c5dbf7160a3e918cf">   82</a></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="BodyHealthSensor_8h.html#a028af8c275b3a04c5dbf7160a3e918cf">sendStartSeqFlag</a> = <span class="keyword">true</span>; </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="keywordtype">void</span> <a class="code hl_function" href="BodyHealthSensor_8h.html#a0d9009b25da2ccd9dad013eba22d7969">myBodyHeathSensorLoop</a>();</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">#endif </span></div>
<div class="ttc" id="aBodyHealthSensor_8h_html_a028af8c275b3a04c5dbf7160a3e918cf"><div class="ttname"><a href="BodyHealthSensor_8h.html#a028af8c275b3a04c5dbf7160a3e918cf">sendStartSeqFlag</a></div><div class="ttdeci">bool sendStartSeqFlag</div><div class="ttdoc">use for func myBodyHealthSensorLoop()</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:82</div></div>
<div class="ttc" id="aBodyHealthSensor_8h_html_a0d9009b25da2ccd9dad013eba22d7969"><div class="ttname"><a href="BodyHealthSensor_8h.html#a0d9009b25da2ccd9dad013eba22d7969">myBodyHeathSensorLoop</a></div><div class="ttdeci">void myBodyHeathSensorLoop()</div><div class="ttdoc">get the data from sensor and be used in .ino loop()</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.cpp:24</div></div>
<div class="ttc" id="aBodyHealthSensor_8h_html_a5cc5bbee1a27b484287fcaac801e65f3"><div class="ttname"><a href="BodyHealthSensor_8h.html#a5cc5bbee1a27b484287fcaac801e65f3">myBodyHealthSensorSetup</a></div><div class="ttdeci">void myBodyHealthSensorSetup()</div><div class="ttdoc">setup the config and be used in .ino setup()</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.cpp:17</div></div>
<div class="ttc" id="aBodyHealthSensor_8h_html_a96f2f6dbd3b5d7f3436ff15ded38ac24"><div class="ttname"><a href="BodyHealthSensor_8h.html#a96f2f6dbd3b5d7f3436ff15ded38ac24">isAvailable</a></div><div class="ttdeci">bool isAvailable(BodyHeathSensor bhs)</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.cpp:12</div></div>
<div class="ttc" id="aBodyHealthSensor_8h_html_ab077fa1127453be2bd9d4c3c8a768fa7"><div class="ttname"><a href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a></div><div class="ttdeci">#define uint8_t</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:15</div></div>
<div class="ttc" id="astructBodyHeathSensor_html"><div class="ttname"><a href="structBodyHeathSensor.html">BodyHeathSensor</a></div><div class="ttdoc">human body health monitoring sensor data structure(totally, 16 bytes)</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:50</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a1e3a9809200e8d2360f63be7005daf3a"><div class="ttname"><a href="structBodyHeathSensor.html#a1e3a9809200e8d2360f63be7005daf3a">BodyHeathSensor::tail</a></div><div class="ttdeci">uint8_t tail</div><div class="ttdoc">available tail: 0xf1</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:62</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a2c24d40ada25d6aeb4f03504bb312dcd"><div class="ttname"><a href="structBodyHeathSensor.html#a2c24d40ada25d6aeb4f03504bb312dcd">BodyHeathSensor::HRV_RMSSD</a></div><div class="ttdeci">uint8_t HRV_RMSSD</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:58</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a44e2133ad73131f98a91999070cb1621"><div class="ttname"><a href="structBodyHeathSensor.html#a44e2133ad73131f98a91999070cb1621">BodyHeathSensor::R2RInterval</a></div><div class="ttdeci">uint8_t R2RInterval</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:56</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a62eb91c6d8c95406d41074a335109e27"><div class="ttname"><a href="structBodyHeathSensor.html#a62eb91c6d8c95406d41074a335109e27">BodyHeathSensor::heartRate</a></div><div class="ttdeci">uint8_t heartRate</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:52</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a65ee96c67f599d4da08f8aa0dd5dc89b"><div class="ttname"><a href="structBodyHeathSensor.html#a65ee96c67f599d4da08f8aa0dd5dc89b">BodyHeathSensor::HRV_SDNN</a></div><div class="ttdeci">uint8_t HRV_SDNN</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:57</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_abb3e579c1bdace0081d019e4bca699be"><div class="ttname"><a href="structBodyHeathSensor.html#abb3e579c1bdace0081d019e4bca699be">BodyHeathSensor::bloodOxygen</a></div><div class="ttdeci">uint8_t bloodOxygen</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:53</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_aede40a8f777c6b3df2bca269a27b78dc"><div class="ttname"><a href="structBodyHeathSensor.html#aede40a8f777c6b3df2bca269a27b78dc">BodyHeathSensor::microcirculation</a></div><div class="ttdeci">uint8_t microcirculation</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:54</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_aef980c827feed489c2e56c03ce8363c7"><div class="ttname"><a href="structBodyHeathSensor.html#aef980c827feed489c2e56c03ce8363c7">BodyHeathSensor::fatigue</a></div><div class="ttdeci">uint8_t fatigue</div><div class="ttdef"><b>Definition:</b> BodyHealthSensor.h:59</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
